<script>
    var dog={
        dName:"coco",
        type:"阿拉斯加犬",
        age:"5岁",
        color:"棕红色"
    };
    //遍历：
    for(var a in dog){
        alert(dog[a])
    }
</script>